package club.framework.web.base.util;

import java.util.Base64;
import java.util.HashMap;
import java.util.Map;

/**
 * @date 2017/9/21.
 * @Email:sunmch@163.com
 * @author: 念梓
 * des:阿拉伯数字转换为中文数字
 * 0.1版本只支持个位数的转换
 * @version  0.1
 *
 *
 */
public class ArabNumConventCNNumUtils {

    private static final Map<String,String> BASE_FY_MAP = new HashMap<>();
    static {
        BASE_FY_MAP.put("0","零");
        BASE_FY_MAP.put("1","一");
        BASE_FY_MAP.put("2","二");
        BASE_FY_MAP.put("3","三");
        BASE_FY_MAP.put("4","四");
        BASE_FY_MAP.put("5","五");
        BASE_FY_MAP.put("6","六");
        BASE_FY_MAP.put("7","七");
        BASE_FY_MAP.put("8","八");
        BASE_FY_MAP.put("9","九");
        BASE_FY_MAP.put("10","十");
    }

    public static String getCNNum(int src){
        return BASE_FY_MAP.get(String.valueOf(src));
    }





}
